//
//  Drone.swift
//  RLAR
//
//  Created by raniys on 2018/8/9.
//  Copyright © 2018 raniys. All rights reserved.
//

import ARKit

class Drone: SCNNode {
    func loadModel() {
        guard let url = Bundle.main.url(forResource: "Assets.scnassets/Drone", withExtension: "scn"), let nodeRefSearch = SCNReferenceNode(url: url) else {
            return
        }

        nodeRefSearch.load()
        
        guard let node = nodeRefSearch.childNodes.first else {
            return
        }
        addChildNode(node)
    }
}
